package com.lzw.mall.common.mapper;

import com.lzw.mall.common.entity.OrderDetails;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lizhenwei
 * @since 2023-04-11
 */
public interface OrderDetailsMapper extends BaseMapper<OrderDetails> {

    @Select("select product_name,amount,price,product_img from order_details where order_id=#{id}")
    List<OrderDetails> selectListByOrderId(Integer id);
}
